/**
 * 我自己的layer 弹窗
 * @type {{}}
 */
var mylayer = {
    _temp : '<div class="window_layer"><div class="upload_layer"><div class="layer_title">{title}<a href="javascript:;" class="layer_colse" onclick="mylayer.colse()"><i class="layui-icon" style="color: #fff; font-size: 20px">&#x1007;</i></a></div><div class="layer_con">{content}</div></div>',
    show:function (title,$content) {
          var window_layer = document.getElementsByClassName('window_layer')[0];
          if (window_layer){
               document.body.removeChild(window_layer);
          }
          var _layhtml = this._temp.replace("\{title\}",title).replace("\{content\}",$content);
          document.body.innerHTML+=_layhtml;
          setTimeout(function () {
              document.getElementsByClassName('upload_layer')[0].style.top = '30%'
          },50)
    },
    colse:function () {
        var window_layer = document.getElementsByClassName('window_layer')[0];
        if (window_layer){
            document.body.removeChild(window_layer);
        }
    }
}